From 460f94edcd095993ffd08258ed82eefab45841e0 Mon Sep 17 00:00:00 2001 From: "Karl O. Pinc" Date: Tue, 27 Apr 2021 15:39:47 -0500 Subject: [PATCH] Have SetupError name be consistent between pgwui_core and pgwui_upload_core --- src/pgwui_upload_core/exceptions.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pgwui_upload_core/exceptions.py b/src/pgwui_upload_core/exceptions.py index f62c95f..8025357 100644 --- a/src/pgwui_upload_core/exceptions.py +++ b/src/pgwui_upload_core/exceptions.py @@ -19,25 +19,25 @@ # Karl O. Pinc -from pgwui_core.exceptions import SetupError as UploadError +from pgwui_core.exceptions import SetupError # Upload related exceptions -class BadFileFormatError(UploadError): +class BadFileFormatError(SetupError): def __init__(self, component, value): super().__init__( f'The "pgwui:{component}:file_format" PGWUI setting is ({value}) ' 'it must be either "csv" or "tab" or the setting be omitted') -class NoTableError(UploadError): +class NoTableError(SetupError): '''No table uploaded''' def __init__(self, e, descr='', detail=''): super(NoTableError, self).__init__(e, descr, detail) -class BadTableError(UploadError): +class BadTableError(SetupError): '''Supplied name does not work for a table or view''' def __init__(self, e, descr='', detail=''): super(BadTableError, self).__init__(e, descr, detail) @@ -61,7 +61,7 @@ class CannotInsertError(BadTableError): super(CannotInsertError, self).__init__(e, descr, detail) -class BadHeadersError(UploadError): +class BadHeadersError(SetupError): '''The headers in the uploaded file are bad.''' def __init__(self, e, descr='', detail=''): super(BadHeadersError, self).__init__(e, descr, detail) -- 2.34.1